<?php
namespace App;

use Illuminate\Routing\Controller;

// 基础控制器
abstract class BaseController extends Controller
{
    /**
     * 标准响应输出
     */
    public function response( $data )
    {
        return Response::json( [ 'code' => 0, 'message' => 'success', 'result' => $data ] );
    }
}